<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
    <title>inputEx-yui3 - UrlField Usage</title>

    <link rel="stylesheet" type="text/css" href="css/demo.css"/>
    <link rel="stylesheet" type="text/css" href="css/dpSyntaxHighlighter.css">

    <script type="text/javascript" src="../js/inputex-loader.js"></script>
</head>

<body>

<p class='demoTitle'>inputEx - UrlField Usage</p>


<!-- Example 1 -->
<div class='exampleDiv'>

    <p class="title">Basic UrlField creation</p>

    <p>Use the following code to create a basic inputEx UrlField.</p>

    <div class='demoContainer' id='container1'></div>

    <div class='codeContainer'>
        <textarea name="code" class="JScript">
            new Y.inputEx.UrlField({showMsg: true, size:50, value: 'http://ajaxian.com/archives/inputex-json-form-builder'}).render('#container1');
        </textarea>
    </div>

</div>


<!-- Example 2 -->
<div class='exampleDiv'>

    <p class="title">favicon option</p>

    <p>If you use https, you might need to remove the favicon option (or provide a proxy).</p>

    <div class='demoContainer' id='container2'></div>

    <div class='codeContainer'>
        <textarea name="code" class="JScript">
            new Y.inputEx.UrlField({showMsg: true, favicon: false, value: 'http://www.ajaxian.com'}).render('#container2');
        </textarea>
    </div>

</div>


<!-- Example 3 -->
<div class='exampleDiv'>

    <p class="title">Type invitation</p>

    <p>You can use all the parameters from StringField, including "typeInvite":</p>

    <div class='demoContainer' id='container3'></div>

    <div class='codeContainer'>
        <textarea name="code" class="JScript">
            new Y.inputEx.UrlField({showMsg: true, favicon: false, typeInvite: 'webservice url'}).render('#container3');
        </textarea>
    </div>

</div>

<script>

    inputEx.YUI({base:'../lib/yui3/',inputExBase:'../'}).use('urlfield', function(Y) {
        // Required for the UrlField
        Y.inputEx.spacerUrl = "../images/space.gif";

        // Example 1
        new Y.inputEx.UrlField({showMsg: true, size:50, value: 'http://ajaxian.com/archives/inputex-json-form-builder'}).render('#container1');

        // Example 2
        new Y.inputEx.UrlField({showMsg: true, favicon: false, value: 'http://www.ajaxian.com'}).render('#container2');

        // Example 3
        new Y.inputEx.UrlField({showMsg: true, favicon: false, typeInvite: 'webservice url'}).render('#container3');
    });

</script>

<script src="js/dpSyntaxHighlighter.js"></script>
<script language="javascript">
    dp.SyntaxHighlighter.HighlightAll('code');
</script>

</body>
</html>